package com.woniu.api.movie;

import com.woniu.api.MovieApiFallback;
import com.woniu.common.entity.vo.MovieVo;
import com.woniu.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "movie-service",fallback = MovieApiFallback.class)
public interface MovieApi {

    @GetMapping("/api/movies/{id}")
    public Result<MovieVo> getMovieById(@PathVariable("id") Integer id);

}
